<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>业务管理</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="../../css/public-heder-Reset.css">
<style>
/*button*/
.Commission {width:100%;margin-top:9px;}
.Commission  p{font-size:15px;color:#2d2d2d;text-align:center;line-height:15px;}
.Commission  i{color:#fb7230;}
/*Envelope-list*/
.Envelope-list{width:100%;}
.Envelope-list .Envelope{width:100%;background:#fff;border-top:1px solid #ececec;border-bottom:1px solid #ececec;padding:17px 19px;margin-top:9px;}
.Envelope-list .Envelope .top{width:100%;margin-bottom:12px;}
.Envelope-list .Envelope .top p{font-size:13px;line-height:15px;color:#666;}
.Envelope-list .Envelope .top p em{color:#fb7230;}
.Envelope-list .Envelope .top span{font-size:15px;color:#fb7230;line-height:15px}
.Envelope-list .Envelope .top span i{color:#666;}
.Envelope-list .Envelope .bottom p{font-size:13px;color:#999;}
.Envelope-list .Envelope .bottom span{font-size:13px;color:#999;}	
</style>
</head>
<body>
	<!-- page_box -->
	<div class="page-box">
		<!-- header -->
		<header class="page-header">
			<a href="javascript:history.go(-1)" class="back"></a>
			<p class="pege-name">业务管理</p>
		</header>
		<div class="liubai"></div>
		<!-- header /-->
		<!-- Commission  -->
		<div class="Commission">
			<p>佣金额：<i id="money">0.00</i>元</p>
		</div>
		<!-- Commission  / -->
		<!-- more-list -->
		<div class="Envelope-list">
			<!-- AJAX获取数据 -->
		</div>
		<!-- more-list/ -->
	</div>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/http-url.js"></script>
<script type="text/javascript" src="../../js/dropload.js"></script>
<script type="text/javascript">
	$(function(){
		var projectsNuber=0;
		$('.page-box').dropload({
	        scrollArea : window,
	        loadDownFn : function(me){
	        	load_me=me;
	          ajaxRequest('/api/menu/agent/work/'+projectsNuber+'',null,function(data){
	          	$('#money').text(data.data.money);
	          	projectsNuber++;
	            // 判断是否加载完毕
	            if(!data.data.content){
	               // 锁定
	                me.lock();
	              // 无数据
	              me.noData();
	            }
           	 	$(data.data.content).appendTo('.Envelope-list');
           	    me.resetload();
	          },false);  
	        },
	        threshold :50
	    });	
	});
</script>	
</body>
</html>